//
//  CQHandlerObject.m
//
//  Created by chen on 14/11/19.
//  Copyright © 2014年 chen. All rights reserved.
//

#import "CQHandlerObject.h"
#import "CQSanBoxHandler.h"
@implementation CQHandlerObject
+ (void)saveResponseObjectToCaches:(id)responseObject fileName:(NSString *)fileName {
    [NSKeyedArchiver archiveRootObject:responseObject toFile:[CQSanBoxHandler saveInCachesWithFileName:fileName]];
}
+ (id)readResponseObjectFromCaches:(NSString *)fileName {
  return [NSKeyedUnarchiver unarchiveObjectWithFile:[CQSanBoxHandler saveInCachesWithFileName:fileName]];
}
@end
